package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysAuditConfig;
import com.ruoyi.system.mapper.SysAuditConfigMapper;
import com.ruoyi.system.service.SysAuditConfigService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysAuditConfigServiceImpl extends ServiceImpl<SysAuditConfigMapper,SysAuditConfig> implements SysAuditConfigService {

    @Override
    public List<SysAuditConfig> getAuditConfig(SysAuditConfig config) {
        return baseMapper.getAuditConfig(config);
    }

    @Override
    public List<SysAuditConfig> getNextAudit(Integer level, String auditCode) {
        return baseMapper.getNextAudit(level,auditCode);
    }

    @Override
    public List<SysAuditConfig> getAuditParent(String parentId, String auditCode) {
        return baseMapper.getAuditParent(parentId,auditCode);
    }
}
